import type { UserConfigExport } from "@tarojs/cli"

export default {
  mini: {},
  h5: {
    devServer: {
      port: 10086, // H5开发服务器端口，避免与后端3000端口冲突
      host: 'localhost',
      open: false,
      proxy: {
          '/api': {
            target: 'http://localhost:3000',
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/api/, '')
          }
        }
    }
  }
} satisfies UserConfigExport<'vite'>
